package com.example.demo.serviceImpl;

import com.example.demo.dao.Pm25Mapper;
import com.example.demo.entity.Pm25;
import com.example.demo.entity.Pm25Example;
import com.example.demo.service.Pm25Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/12/12.
 */
@Service
public class Pm25ServiceImpl implements Pm25Service {
    @Resource
    private Pm25Mapper pm25Mapper;
    @Override
    public Pm25 selectPm25(String id) {
        Pm25Example pm25Example = new Pm25Example();
        Pm25Example.Criteria criteria = pm25Example.createCriteria();
        criteria.andIdEqualTo(id);
        return pm25Mapper.selectByExampleWithBLOBs(pm25Example).get(0);
    }

    @Override
    public List<Pm25> getAllPm25() {
        return null;
    }

    @Override
    public List<Pm25> getPm25Bycity(String city) {
        Pm25Example pm25Example = new Pm25Example();
        Pm25Example.Criteria criteria = pm25Example.createCriteria();
        return null;
    }

    @Override
    public List<Pm25> getPm25BycityAndtime(String city, String stimeStart, String timeEnd) {
        return null;
    }
}
